import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App.tsx";
import { ConfigProvider } from "antd";
import zhCN from "antd/locale/zh_CN";
import store from "./store";
import { Provider } from "react-redux";
import PopupProvider from "@/components/provider/PopupProvider";

import "@/assets/styles/base.less";

ReactDOM.createRoot(document.getElementById("root")!).render(
  <React.StrictMode>
    <ConfigProvider locale={zhCN}>
      <Provider store={store}>
        <PopupProvider>
          <App />
        </PopupProvider>
      </Provider>
    </ConfigProvider>
  </React.StrictMode>
);
